package com.step.ems.api.res

import com.step.ems.common.ApiException

data class Result<T>(
    val statusCode: Int,
    val statusMsg: String?,
    val responseData: T,
    val responseTime: String?,
) {
    fun get(): T {
        if (statusCode != 200) {
            throw ApiException(statusMsg, statusCode)
        }
        return responseData
    }
}
